package com.cqie.secondhandtransaction.DTO;

import com.cqie.secondhandtransaction.entity.ProductInfo;
import com.cqie.secondhandtransaction.entity.UserInfo;
import com.cqie.secondhandtransaction.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderInfoVO {

    @ApiModelProperty("交易ID")
    private Integer id;

    @ApiModelProperty("订单编号")
    private String orderCode;

    @ApiModelProperty("交易地点（收货地址）")
    private String ordAddress;

    @ApiModelProperty("实付款")
    private BigDecimal ordPrice;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

    @ApiModelProperty("付款时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date payTime;

    @ApiModelProperty("交易时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date tradeTime;

    private ProductInfoDTO productInfo;

    @ApiModelProperty("买家")
    private UserInfo userInfo;

    @ApiModelProperty("卖家")
    private UserInfo saller;

    @ApiModelProperty("订单状态")
    private String status;

}
